package com.ruibang.glass.sale.feign;

import com.ruibang.glass.common.domain.DictInfo;
import com.ruibang.glass.common.domain.ProductInfo;
import com.ruibang.glass.common.domain.camunda.BpmProcessInstanceCreate;
import com.ruibang.glass.common.domain.camunda.BpmProcessInstanceStatus;
import com.ruibang.glass.common.domain.camunda.BpmTaskChangeAssigneeReq;
import com.ruibang.glass.common.domain.camunda.ProcessRuleChangeReq;
import com.teaming.cloud.framework2.common.model.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;
import java.util.List;

@FeignClient("glass-portal")
@Component
public interface PortalApi {

    @RequestMapping(value = "/api/sys/product/getById/{id}",method = RequestMethod.GET)
    ResultBody<ProductInfo> getProductById(@PathVariable("id") String id);

    @RequestMapping(value = "/api/dict/getValueByCode/${code}",method = RequestMethod.GET)
    ResultBody<String> getValueByCode(@PathVariable("code") String code);


    @RequestMapping(value = "/api/dict/updateValueByCode",method = RequestMethod.POST)
    ResultBody updateValueByCode(@RequestBody DictInfo info);



}
